package com.wsy.Pojo;


import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;

public class User {

    private Integer id;
    private String name;
    private Double money;
    @JsonFormat(pattern = "yyyy-MM-dd")
//    @JSONField(format = "yyyy-MM-dd")
    private LocalDate birthday;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    //@JSONField(format = "yyyy-MM-dd HH:mm")
    private LocalDateTime newDate;

    public User(Integer id, String name, Double money, LocalDate birthday, LocalDateTime newDate) {
        this.id = id;
        this.name = name;
        this.money = money;
        this.birthday = birthday;
        this.newDate = newDate;
    }

    public User() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getMoney() {
        return money;
    }

    public void setMoney(Double money) {
        this.money = money;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public LocalDateTime getNewDate() {
        return newDate;
    }

    public void setNewDate(LocalDateTime newDate) {
        this.newDate = newDate;
    }
}
